/// @file Basic.vs
/// @brief a basic diffuse light shader used with Basic.fs

/// @brief our projection matrix generated from the Camera
uniform mat4 projectionMatrix;

/// @brief our ViewMatrix generated from the Camera
uniform mat4 ViewMatrix;

/// @brief our ModelMatrix generated from our transforms
uniform mat4 ModelMatrix;

/// @brief the vertex normal
varying vec3 fragmentNormal;

void main(void)
{
    fragmentNormal = (ViewMatrix*ModelMatrix*vec4(gl_Normal, 0.0)).xyz;
    gl_Position = projectionMatrix*ViewMatrix*ModelMatrix*gl_Vertex;
}
